#include "rectitem.h"



RectItem::RectItem(qreal x, qreal y, qreal width, qreal height, int64 time_p, QGraphicsItem *parent):
    QGraphicsRectItem (x, y, width, height, parent), time_p(time_p)
{

}

void RectItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
    /*
    if(event->button() == Qt::LeftButton) {
        if(this->opacity() < 0.5)
            this->setOpacity(1);
        else this->setOpacity(0.01);
        MainWindow::getInstance()->changeOnePipeStatus(this->index);
    }
    else if(event->button() == Qt::RightButton) {
        this->modifyWidth();
    }
    */
}

RectItem::~RectItem()
{

}
